package com.mjh.partners.service.Impl;

import java.util.List;

import com.mjh.partners.mapper.CommentMapper;
import com.mjh.partners.pojo.Comment;
import com.mjh.partners.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;



@Service
@Transactional
public class CommentServiceImpl implements CommentService {
  @Autowired
  private CommentMapper commentMapper;
  @Override
  public List<Comment> getAllCommentByEid(int eid) {
    return this.commentMapper.getAllCommentByEid(eid);
  }
  @Override
  public boolean addComment(Comment comment) {
    return this.commentMapper.addComment(comment);
  }
  @Override
  public boolean deleteByEx(int eid) {
    return this.commentMapper.deleteByEx(eid);
  }
  @Override
  public boolean deleteByCid(int cid) {
    return this.commentMapper.deleteByCid(cid);
  }

}
